package com.chenailin.www.service;

import com.chenailin.www.model.dto.EnterpriseDTO;
import com.chenailin.www.model.pojo.Enterprise;
import com.chenailin.www.model.vo.EnterpriseVO;

import java.util.List;

/**
 * @author evi
 */
public interface EnterpriseService {
    Enterprise createEnterprise(EnterpriseDTO dto, Long creatorId);

    Enterprise updateEnterprise(EnterpriseDTO dto, Long userId);

    void deleteEnterprise(Long id, Long userId);

    EnterpriseVO getEnterpriseById(Long id, Long userId);

    List<EnterpriseVO> getUserEnterprises(Long userId);

    List<EnterpriseVO> getCreatedEnterprises(Long creatorId);

    List<EnterpriseVO> getOwnedEnterprises(Long userId);

}
